package com.service;

import java.util.List;

import com.dao.BaseDao;
public class roomService<T> {
	private BaseDao dao;

	public void AddRoom(T room) throws Exception{
		dao.addObject(room);
	}
	
	public List<T> SelectRoom(String str) throws Exception{
		List<T> room = dao.getObjects(str);
		return room;
	}
	
	public void UpdateRoom(T room) throws Exception{
		dao.updateObject(room);
	}
	public BaseDao getDao() {
		return dao;
	}

	public void setDao(BaseDao dao) {
		this.dao = dao;
	}


}